package com.suxin.utils;

import java.io.*;
import java.util.Properties;

/**
 * @author Tang
 * @classname PropertiesPersister
 * @description [  ]
 * @date 2022/12/22 20:16
 */
public interface PropertiesPersister {

    /**
     * load
     * @param props
     * @param is
     * @throws IOException
     */
    void load(Properties props, InputStream is) throws IOException;

    void load(Properties props, Reader reader) throws IOException;

    void store(Properties props, OutputStream os, String header) throws IOException;

    void store(Properties props, Writer writer, String header) throws IOException;

    void loadFromXml(Properties props, InputStream is) throws IOException;

    void storeToXml(Properties props, OutputStream os, String header) throws IOException;
}
